package renda.action.admin;


import java.util.List;

import renda.common.SessionUtil;
import renda.dao.serivce.AdminService;
import renda.pojo.Topics;

public class InfoManageAction{
	private Topics topic = new Topics();
	private AdminService adminService;
	public String execute(){
		List<Topics> list  = adminService.getTopics(1,10);
		if(list!=null&&list.size()>0){
			SessionUtil.setAttr("topiclist", list);
			return "success";
		}
		return "error";
	}
	
	public void setTopics(Topics topic) {
		this.topic = topic;
	}
	public Topics getTopic() {
		return topic;
	}
	public void setAdminService(AdminService adminService) {
		this.adminService = adminService;
	}
}
